package com.hujesse.service.user;


import com.hujesse.pojo.User;
import com.hujesse.utils.QueryInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserService {
    // 调用dao层，登录成功返回1
    Map<String,Object> queryUserByInfo(String username, String password);
    List<User> queryAllUser( QueryInfo queryInfo);
    int getUserCounts(QueryInfo queryInfo);
    //  根据用户id修改状态值
    int updateUserState( int id,boolean state);
    int addUser(User user);
    int deleteUser(int id);
    User getUserById(int id);
    int updateUser(User user);
    int updateUserRole(User user);
}
